****************
* Description*
****************

The following files contain the .dta file and the STATA code to replicate the tables and graphs of the article:
"Reverting to Informality: Unregistered Property Transactions and the Erosion of the Titling Reform in Peru"
by Italo A. Gutierrez and Oswaldo Molina

*Dataset
**********
(The dataset was created using STATA 14)

The dataset analysis_data.dta was constructed joining two datasets that were commissioned by COFOPRI (Commission for Formalization of Informal Property).
One dataset cover districts that were served by the RPU (Registro Predial Urbano) up to its elimination in 2004. These are the treated districts, identified with area1=1 in the data.
The other dataset cover districts that were not served by the RPU. These are the control districts, identified with area1=0 in the data.

The survey questionnaire for each dataset was developed by COFOPRI in the same year and are very comparable in the framing of the questions. 
The surveys ask current property owners if they had engaged in any of the following activities: 
- construction (including addition of new rooms, construction of additional floors, etc.)
- partial sale of the property
- division of property into two or more independent lots
- transfer of property to a relative in an anticipated inheritance, 
- obtaining a mortgage on the property or other activities. 

We refer to each of these activities as a transaction. 

Property owners were also asked in what year these transactions occurred and whether they declared or registered them.

We have kept the variables related to socio-demographic characteristics and property transactions.


*STATA Do-files
****************
(The do-files are written using STATA 14)

Please, change the directory files prior to running the do files. 

There are two do-files:

1. Gutierrez_Molina_Main_Tables_Figures.do   (This do file should be run first)
-------------------------------------------------------------------------------

This do-file replicates the main results of the paper including:

- Table 2: Sample means for treated and control districts
- Table 3: Effect of eliminating the RPU on the probability of registration
- Table 4: Effects on the probability of registering in first year by subgroups
- Online Appendix Table A1: Effect of eliminating the RPU on the probability of registration � Full Estimation Results

- Figure 1: Average probability of registration during the first year after a transaction. 
- Figure 2: Kaplan-Meier failure function
- Figure 3: Average predicted factual and counterfactual probability of registration for the treated group
- Figure 4: Yearly estimated differences in the registration probability between treated and control areas

2. Gutierrez_Molina_Figure5.do		(This do file should be run last)	
-------------------------------------------------------------------------

This do-file replicates the following results: 
 
- Online Appendix Table A2: Effect of eliminating the RPU on the probability of property transactions
- Figure 5. Average probability of having property transactions (all transaction types) 

(Note: these results are produced at the household level instead of at the transaction level, and therefore they are run 
in a separate do-file)


